import java.util.Scanner;
public class test11 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter circle1's center x-, y-coordinates, and radius: ");
        double c1X = input.nextDouble();
        double c1Y = input.nextDouble();
        double r1 = input.nextDouble();
        System.out.print("Enter circle2's center x-, y-coordinates, and radius: ");
        double c2X = input.nextDouble();
        double c2Y = input.nextDouble();
        double r2 = input.nextDouble();
        double dx = c2X - c1X;
        double dy = c2Y - c1Y;
        double distanceSquared = dx * dx + dy * dy;
        double distance = Math.sqrt(distanceSquared);
        if (distance <= Math.abs(r1 - r2)) {
            System.out.println("circle2 is in circle1");
        } else if (distance <= r1 + r2) {
            System.out.println("circle2 overlaps circle1");
        } else {
            System.out.println("circle2 does not overlap circle1");
        }
        input.close();
    }
}
